<?php

//BAP项目PC端接口文件

Route::group(['middleware' => 'web', 'namespace' => 'Bap'], function () {

	    Route::any('log_in', 'LoginController@log_in');
        //首页banner图
        Route::any('banner_list', 'IndexController@banner_list');
        //首页币种行情图
        Route::any('market_list', 'IndexController@market_list');
        //发送手机验证码
        Route::any('send_phone_code', 'LoginController@send_phone_code');
        //发送邮箱验证码
        Route::any('send_email_code', 'LoginController@send_email_code');
        //手机注册
        Route::any('phone_register', 'LoginController@phone_register');
        //邮箱注册
        Route::any('email_register', 'LoginController@email_register');
        //需要token的接口
        Route::group(['middleware' => 'CheckToken'], function () {
            //用户资产详情USDT
            Route::any('user_property', 'PropertyController@user_property');
            //设置交易密码
            Route::any('set_pay_pass', 'LoginController@set_pay_pass');
            //修改登录密码
            Route::any('update_password', 'LoginController@update_password');
            //修改交易密码
            Route::any('update_pay_pass', 'LoginController@update_pay_pass');
            //用户中心-基本信息
            Route::any('center_info', 'CenterController@center_info');
            //用户中心-登录历史
            Route::any('login_history', 'CenterController@login_history');
            //保存用户实名信息
            Route::any('save_autonym', 'CenterController@save_autonym');

            Route::any('currency_market', 'CurrencyController@currency_market');
            Route::any('currency_turn_list', 'CurrencyController@currency_turn_list');//当前用户支持转入转出的货币列表
            Route::any('turn_list', 'CurrencyController@turn_list');//当前用户支持转入转出的货币列表
            Route::any('user_property_list', 'PropertyController@user_property_list');//用户当前资产列表信息
            //委托单列表
            Route::any('entrust_list', 'EntrustController@entrust_list');
            //账户余额
            Route::any('property_list', 'PropertyController@property_list');
            //提币交易的接口
            Route::any('turn_out_submit', 'PropertyController@turn_out_submit');

        });
        
        //忘记密码
        Route::any('forget_password', 'LoginController@forget_password');        
        //通过验证码修改交易密码
        Route::any('update_pass_by_code', 'LoginController@update_pass_by_code');        
        //系统消息列表
        Route::any('message_list', 'MessageController@message_list');
        //消息详情
        Route::any('message_info', 'MessageController@message_info');
        //买卖盘和最新交易
        Route::any('transactions', 'EntrustController@transactions');
        //取消委托
        Route::any('entrust_undo', 'EntrustController@entrust_undo');
        //账单
        Route::any('bill_list', 'PropertyController@bill_list');
        //财务记录
        Route::any('finance_list', 'PropertyController@finance_list');
        //币种筛选
        Route::any('current_list', 'PropertyController@current_list');
        //提币交易的信息
        Route::any('turn_info', 'PropertyController@turn_info');
        Route::any('currency_swap', 'PropertyController@currency_swap');
        //K线图
        Route::any('kline_data', 'CurrencyController@kline_data');
        //深度图
        Route::any('depth_line_data', 'CurrencyController@depth_line_data');
        //币种行情
        Route::any('lasted_list', 'CurrencyController@lasted_list');
        Route::any('currency_trend', 'CurrencyController@currency_trend');
});